import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ConfigComponent } from './config.component';

const routes: Routes = [
    {
        path: '',
        component: ConfigComponent,
        children: [
            {
                path: 'ra', loadChildren: './resource-attribute/resource-attribute.module#ResourceAttributeModule',
                data: { title: '设备属性配置', module: 'ptpmc/config/ra', power: 'SHOW' }
            },
            {
                path: 'de', loadChildren: './daily-energy/daily-energy.module#DailyEnergyModule',
                data: { title: '生产线日均能耗标准', module: 'ptpmc/config/de', power: 'SHOW' }
            },
            {
                path: 'sh', loadChildren: './schedule_history/sh.module#SHModule',
                data: { title: '班次数据过滤设置', module: 'ptpmc/config/sh', power: 'SHOW' }
            },
            {
                path: 'config-fault-status', loadChildren: './config-fault-status/config-fault-status.module#ConfigFaultStatusModule'
                , data: { title: '设备故障字过滤配置', module: 'ptpmc/config/config-fault-status', power: 'SHOW' }
            },
            {
                path: 'config-tip-status', loadChildren: './config-tip-status/config-tip-status.module#ConfigTipStatusModule'
                , data: { title: '设备故障状态过滤配置', module: 'ptpmc/config/config-tip-status', power: 'SHOW' }
            },
            {
                path: 'all-cycletime-history',
                loadChildren: './all-cycletime-history/all-cycletime-history.module#AllCycletimeHistoryModule'
                , data: { title: 'CycleTime记录过滤设置', module: 'ptpmc/config/all-cycletime-history', power: 'SHOW' }
            },
            {
                path: 'assist-call-summary', loadChildren: './assist-call-summary/assist-call-summary.module#AssistCallSummaryModule'
                , data: { title: 'Andon求助呼叫过滤设置', module: 'ptpmc/config/assist-call-summary', power: 'SHOW' }
            },
            {
                path: 'tool-change-log', loadChildren: './tool-change-log/tool-change-log.module#ToolChangeLogModule'
                , data: { title: '换刀记录过滤', module: 'ptpmc/config/tool-change-log', power: 'SHOW' }
            },
            {
                path: 'config-phcnt', loadChildren: './config-phcnt/config-phcnt.module#ConfigPhcntModule'
                , data: { title: '小时产量模版配置', module: 'ptpmc/config/config-phcnt', power: 'SHOW' }
            },
            {
                path: 'config-wp', loadChildren: './config-wp/config-wp.module#ConfigWPModule'
                , data: { title: 'Working Pace配置', module: 'ptpmc/config/config-wp', power: 'SHOW' }
            },
            {
                path: 'tool', loadChildren: './tool/tool.module#ToolModule'
                , data: { title: '刀具大数据维护', module: 'ptpmc/config/tool', power: 'SHOW' }
            },
            {
                path: 'tool-attachment', loadChildren: './tool-attachment/tool-attachment.module#ToolAttachmentModule'
                , data: { title: '刀具图纸维护', module: 'ptpmc/config/tool-attachment', power: 'SHOW' }
            },
            {
                path: 'fwd', loadChildren: './fault-word-description/fault-word-description.module#FaultWordDescriptionModule'
                , data: { title: '故障字数据维护', module: 'ptpmc/config/fwd', power: 'SHOW' }
            },
            {
                path: 'config-email', loadChildren: './config-email/config-email.module#ConfigEmailModule'
                , data: { title: '自动报表邮件配置', module: 'ptpmc/config/config-email', power: 'SHOW' }
            },
            {
                path: 'ct-desc', loadChildren: './ct-desc/ct-desc.module#CtDescModule'
                , data: { title: '额定CT及型号描述配置', module: 'ptpmc/config/ct-desc', power: 'SHOW' }
            },
            {
                path: 'config-moee', loadChildren: './config-moee/config-moee.module#ConfigMoeeModule'
                , data: { title: '月度设备有效利用率配置', module: 'ptpmc/config/config-moee', power: 'SHOW' }
            },
            {
                path: 'config-sc', loadChildren: './config-sc/config-sc.module#ConfigSCModule'
                , data: { title: '全业务链配置', module: 'ptpmc/config/config-sc', power: 'SHOW' }
            },
            {
                path: 'parttype-cycletime', loadChildren: './parttype-cycletime/parttype-cycletime.module#PartTypeCycleTimeModule'
                , data: { title: '额定CT配置', module: 'ptpmc/config/parttype-cycletime', power: 'SHOW' }
            },
            {
                path: 'config-wct', loadChildren: './config-wct/config-wct.module#ConfigWCTModule'
                , data: { title: '武汉CT配置', module: 'ptpmc/config/config-wct', power: 'SHOW' }
            },
        ]
    },
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ConfigRoutingModule { }
